import cryptoJs from 'crypto-js';

class CryptoHelper {
  constructor(key) {
    this.key = key;
  }
  encrypt(word) {
    if (!word) {
      return '';
    }
    const encrypted = cryptoJs.MD5(word);
    return encrypted.toString();
  }
}

export default CryptoHelper;
